<?php
/**
*模块主入口
**/
namespace Fang\AlysmsBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Fang\AlysmsBundle\Event\AlySmsTypeEvent;

class FangAlysmsBundle extends Bundle
{
	/**
	*获取类型
	**/
	public static function getSmsTypes()
	{
		$dispacher = new EventDispatcher;//初始化事件派遣器
		$event = new AlySmsTypeEvent;
		$event = $dispacher->dispatch(AlySmsTypeEvent::NAME, $event);//执行事件派遣
		return $event->getTypes();
	}
}